home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
glass
/
glass.lha
/
GLASS
/
contsens
/
check.var.h
< prev
next >
Wrap
Text File
|
1991-01-31
|
2KB
|
51 lines
/* Copyright (C) 1990 Riet Oolman
This file is part of GLASS.
GLASS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
GLASS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GLASS; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* file: check.var.h
author: H. Oolman
last changed: 13-7-1990
purpose: variables for the simple context-sensitive and
type-checking algorithm
modifications:
updated for new version of tc
p2c translated, tmc version
*/
envrec *curenv; /* types of all names in scope */
symbol marker; /* for placing a mark in an environment;
to be initialised to Buildsymbol("",0l) */
long namessupply; /* provides unique names for yet unknown types */
long extsupply; /* provides unique numbers for extending names */
boolean forfull;
/* True <-> full glass check, otherwise size check */
boolean takewarning; /* true<-> warnings are counted as errors too */
boolean errordiscovered;
/* true at the end, if context-sensitive error was found;
used for correct exit code */
boolean uniq; /* make all names unique by putting _i after them */
boolean adaptds; /* do adaptations of the data structure */
errorrec *errorlist;
/* list of errors discovered (may be discarded yet) */
symbol nestednames;
orig nestednorig;
/* names of functions in whose scope we are (innermost at front), and
origin of innermost */